<template>
 <p v-for="(key,value, index) in cat" :key="index">
   {{key}}=={{value}}=={{index}}
 </p>
</template>



<script  setup>
import {ref} from "vue";

const cat=ref(
    {name: '罗小黑',
    age:18,
    desc:'一只小黑猫'}
)
</script>

<!--scope:代表的是局部样式,只在当前页面有效,不写scoped代表全局有效-->
<style scoped>

</style>